package top.withwings.bonus.bonus.pojo.bonus.rule;

import java.util.LinkedHashMap;

public class BonusRule {


    protected int id;
    protected String type;
    protected String name;
    protected String description;
    protected LinkedHashMap<String, Double> paramMap;

    public BonusRule() {

    }


    public BonusRule(int id, String name, LinkedHashMap<String, Double> paramMap) {
        this.id = id;
        this.name = name;
        this.paramMap = paramMap;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public LinkedHashMap<String, Double> getParamMap() {
        return paramMap;
    }

    public void setParamMap(LinkedHashMap<String, Double> paramMap) {
        this.paramMap = paramMap;
    }

    public void check() {
        //implement in subclasses
    }
}
